#!/bin/bash

## 关闭警告
set +e

## 开始信息
echo -e "${blue4}\n3.set-locale\n${normal}"

sudo apt install -y language-pack-zh-hans
sudo apt install -y language-pack-gnome-zh-hans
sudo sed -i "s/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/" /etc/locale.gen
sudo sed -i "1c\LANG=zh_CN.UTF-8" /etc/default/locale
sudo locale-gen
echo -e "${hintStrSucceed}\nLanguage and locate are set\n语言与区域设置完成${normal}\n"
set -e

## 结束信息
echo -e "${green4}\n3.set-locale\n${normal}"
